package com.lh.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lh.commonutils.R;
import com.lh.entity.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lh.entity.Examine;
import com.lh.entity.vo.ExaminQuery;
import com.lh.entity.vo.TeacherQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author lh
 * @since 2021-06-02
 */
public interface IEduTeacherService extends IService<EduTeacher> {


    void pageQuery(Page<EduTeacher> pageParam, TeacherQuery teacherQuery);

    /**
     * 分页查询讲师
     * @param pageTeacher
     * @return
     */
    Map<String, Object> getTeacherFrontList(Page<EduTeacher> pageTeacher);

    /**
     * 待审核的老师
     * @param pageParam
     */
    void examineTeacher(Page<EduTeacher> pageParam);

    /**
     * 审核通过
     * @param level
     * @param examine
     * @return
     */
    R examinPass(Integer level, Examine examine);


    /**
     * 审核失败
     * @param
     * @param examine
     * @return
     */
    R examinFail(Examine examine);


    /**
     * 审核列表
     * @return
     * @param page
     * @param limit
     * @param examinQuery
     */
   R examinList(Integer page, Integer limit, ExaminQuery examinQuery);

    /**
     * 根据id删除老师并且变为普通用户
     * @param id
     * @return
     */
    boolean removeTeacherById(String id);
}
